CREATE TABLE [dbo].[TCRENO_PRIN]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[NU_RENO] [dbo].[TD_VC_008] NOT NULL,
[CO_UNID_CONC] [dbo].[TD_VC_003] NOT NULL,
[FE_RENO] [dbo].[TD_DT_001] NOT NULL,
[NU_PROC] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TCRENO_PR__NU_PR__753864A1] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCRENO_PR__CO_US__762C88DA] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCRENO_PR__FE_US__7720AD13] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TCRENO_PR__CO_US__7814D14C] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TCRENO_PR__FE_US__7908F585] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCRENO_PRIN] ADD CONSTRAINT [PK__TCRENO_P__2C574CD34E347170] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [NU_RENO], [CO_UNID_CONC], [FE_RENO], [NU_PROC]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TCRENO_PRIN] ADD CONSTRAINT [FK__TCRENO_PRIN__1B5ED8E0] FOREIGN KEY ([CO_EMPR], [CO_UNID_CONC], [CO_PROV], [NU_RENO], [FE_RENO]) REFERENCES [dbo].[TCRENO_PROV] ([CO_EMPR], [CO_UNID_CONC], [CO_PROV], [NU_RENO], [FE_RENO])
GO
